package com.letoo.sso.request;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 第三方登陆注册表单信息接口封装信息
 * 
 * 
 * @author dengjie
 *
 */
public class ThirdPartyRegisterUserRequest implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 6179706033537015579L;

    /**
     * 第三方登录来源类型。1:QQ登陆,2表示微信登陆,3表示微博登陆
     */
    private int type;
    /**
     * 第三方授权用户唯一ID
     */
    private String openId;
    /**
     * 用户注册使用的手机号码
     */
    // private String mobile;
    /**
     * 用户注册密码。用户密码是客户端进行AES加密,密钥与客户端约定好。
     */
    // private String password;
    /**
     * 注册IP
     */
    private String registerIp;
    /**
     * 注册手机型号
     */
    private String phoneType;
    /**
     * 来源类型(0:本系统注册,1:QQ登陆,2表示微信登陆,3表示微博登陆)。现在默认是0。
     */
    private int originType;
    /**
     * 客户端设备标识(0:未知,1:ANDROID,2:IOS)
     */
    private int deviceType;
    /**
     * 邀请人妙喵号或者手机号
     */
    private String inviterMiaoId;
    /**
     * 验证码
     */
    // private String captcha;
    /**
     * 头像另存为七牛上的名字
     */
    private String headPortrait;
    /**
     * 用户昵称
     */
    private String nickname;
    /**
     * 性别(0:女,1:男)
     */
    private int gender;
    /**
     * 生日。
     */
    private Date birthday;
    /**
     * 感情状态。(0:保密,1:单身,2:名花有主,3:已婚)
     */
    private int feelingStatus;
    /**
     * 注册时经度
     */
    private double lon;
    /**
     * 注册时维度
     */
    private double lat;
    /**
     * 注册地址
     */
    private String registerAddress;

    private String clientId;

    /**
     * 注册来源
     */
    private String source = "";

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public int getOriginType() {
        return originType;
    }

    public void setOriginType(int originType) {
        this.originType = originType;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public String getInviterMiaoId() {
        return inviterMiaoId;
    }

    public void setInviterMiaoId(String inviterMiaoId) {
        this.inviterMiaoId = inviterMiaoId;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getFeelingStatus() {
        return feelingStatus;
    }

    public void setFeelingStatus(int feelingStatus) {
        this.feelingStatus = feelingStatus;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        return "ThirdPartyRegisterUserRequest [type=" + type + ", openId=" + openId + ", registerIp=" + registerIp + ", phoneType=" + phoneType + ", originType=" + originType
                + ", deviceType=" + deviceType + ", inviterMiaoId=" + inviterMiaoId + ", headPortrait=" + headPortrait + ", nickname=" + nickname + ", gender=" + gender
                + ", birthday=" + birthday + ", feelingStatus=" + feelingStatus + ", lon=" + lon + ", lat=" + lat + ", registerAddress=" + registerAddress + ", clientId="
                + clientId + ", source=" + source + "]";
    }

}
